package pattern.adapter;

public class test {

    public static void main(String[] args) {
        Target target5V = new Target5VImpl(new Adaptee110VImpl());
        int input = target5V.input();
        System.out.println("输入电压："+input+"V");

        Target target11V = new Target11VImpl(new Adaptee110VImpl());
        System.out.println("输入电压："+target11V.input()+"V");
    }
}
